<?php
header('Content-type: text/html;charset=utf-8');
$Error_Msg=isset($_GET["msg"])?$_GET["msg"]:null;
$Error_url=isset($_GET["url"])?$_GET["url"]:null;
$type=isset($_GET["type"])?$_GET["type"]:null;
/**
 * 页面出错提示
 *
 * @param string $msg
 * @param string $url
 */
function YKT_error_show($Error_Msg,$Error_url,$type=false){
	if(empty($Error_Msg)){
		$Error_Msg="对不起，页面没找到！！";
	}else{
		$Error_Msg=base64_decode(str_replace(' ','+',$Error_Msg));
	}
	if(empty($Error_url)){
		$Error_url="/";
	}else{
		$Error_url=base64_decode($Error_url);
	}
	if($type=='top'){
		$location="window.top.location.href";
	}else{
		$location="window.location.href";
	}
	
echo '<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GDCMS信息提示</title>
<style type="text/css">
body {
	font-size: 12px;
	line-height: 1.5;
	color:#0099cc;
	font-family: "Helvetica Neue", Helvetica, "microsoft yahei","微软雅黑","宋体", Arial, sans-serif;
}
.system_msg{ width:450px;  margin:0 auto;}
.jumptitle{
	filter:progid:DXImageTransform.microsoft.gradient(gradienttype=0,startColorStr=#67a9de,endColorStr=#3e85c5);
	background: -moz-linear-gradient(top, #67a9de, #3e85c5);
	background: -o-linear-gradient(top,#67a9de, #3e85c5);
	background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#67a9de), to(#3e85c5));
	height:30px; line-height:30px; font-size:12px; text-align:center;
	color:#FFFFFF;		
}
.jimecontent{ border:#b8d2e9 solid 1px; background:#e7f3fe; font-size:12px; height:100px; text-align:center;}

</style>
</head>

<body>
<script type="text/javascript">
var jumptime=3;
</script>
<table width="450" class="system_msg" align="center" border="0" cellspacing="0" cellpadding="0">
		  <tr>
		    <td class="jumptitle">GDCMS信息提示</td>
		  </tr>
		  <tr>
		  	<td class="jimecontent">
		    	<div><strong>'.$Error_Msg.'</strong></div>
		        <div><a href="javascript:;" onclick="jumptime=0;jumpurl();" style="color:#404040" title="点击跳转">页面将在 <span id="jumptime">3</span>秒后跳转<br />如果没有跳转，请点击这里</a></div>
		    </td>
		  </tr>
		</table>
		<script type="text/javascript">
		function jumpurl(){
			if(jumptime==0){
				'.$location.'="'.$Error_url.'";
			}else{
				document.getElementById("jumptime").innerHTML=jumptime;
				jumptime--;
				setTimeout(function(){
					jumpurl();
				},1000);
			}
		}
		window.onload=function(){
			jumpurl();
		}
		</script>
</body>
</html>';
exit();
}
YKT_error_show($Error_Msg,$Error_url,$type);



?>
